const ColoredText = (props: { text: string | number; color?: string; bold?: number }) => {
  const { text, color = '#000', bold = 600 } = props;
  return <i style={{ color, fontWeight: bold ? bold : 'normal', fontStyle: 'normal' }}>{text}</i>;
};

export default ColoredText;
